package cn.yuanqiao.archive.supervision.mapper;

import cn.yuanqiao.archive.supervision.domain.YqAttachments;
import cn.yuanqiao.archive.supervision.domain.YqIssuedNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : 庸人一个
 * @create : 2024/3/15 15:45
 */
@Mapper
public interface AddAnnualInspectionMaterialsMapper {
    List<YqIssuedNotice> findPage(YqIssuedNotice issuedNotice);

    List<YqAttachments> findByAttachments(@Param("item") YqIssuedNotice item, @Param("mjWhere") String mjWhere);

    int updateStatus(@Param("id") Long id, @Param("type") String type);

    YqIssuedNotice findNotice(Long id);

    YqIssuedNotice findById(Long id);

    int updateById(YqIssuedNotice issuedNotice);

    int save(YqIssuedNotice issuedNotice);

    List<Long> findByUserId(String tenantCode);

    Map statistics();
}
